import org.shuang.bai.service.IBean1;
import org.shuang.bai.service.Bean2;

logger.info("this is a scripte, just write java code or groovy code");

//get beans from container
IBean1 bean1 = ref(IBean1.class);
Bean2 bean2 = ref("bean2") ;

//get properties from container
String name = prop("name");
int age = prop("age").toInteger();

//execute logic
if(age > 20) {
	bean1.bean1Say("hello $name, you are old man of age $age");
} else {
	bean2.bean2Say("hello $name, you are young man of age $age");
}

logger.info("our team munbers:");
for(munber in colleagues) {
	System.out.println(munber);
}